#pragma once

#include "BaseForm.h"
#include "Resource.h"
// CTestForm dialog

class CTestForm : public CBaseForm
{
	DECLARE_DYNAMIC(CTestForm)

public:
	CTestForm(CWnd* pParent = NULL);   // standard constructor
	virtual ~CTestForm();

	static CBaseForm* CreateShow(CWnd* pParent)
	{
		CTestForm* pform = new CTestForm(pParent);

		//CStockNetWorthForm* 

		pform->Create(CTestForm::IDD,pParent);

		pform->ModifyStyle(WS_BORDER|WS_CAPTION,
			dwStyle & (WS_BORDER|WS_CAPTION));
		/*
		DWORD dwStyle = ::GetWindowLong(pform->GetSafeHwnd(),GWL_STYLE);
		if(dwStyle & WS_POPUP)
		{
			int ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,~WS_POPUP);
			 ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,~WS_CAPTION);
			 ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,~WS_EX_WINDOWEDGE);
			 ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,~WS_EX_DLGMODALFRAME);
			 dwStyle = ~WS_POPUP | ~WS_CAPTION /*| ~WS_EX_WINDOWEDGE | ~WS_EX_DLGMODALFRAME*/ |WS_CHILD;
				 
			ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,WS_CHILD );
			//ret = ::SetWindowLong(pform->GetSafeHwnd(),GWL_STYLE,dwStyle );
		}
	*/
		pform->ShowWindow(SW_SHOW);
		return pform;
	}

// Dialog Data
	enum { IDD = IDD_DIALOG_MAIN };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

	virtual CString GetTitle() const;

public:
	
};
